/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 部署任务
 * 部署任务相关接口
 *
 * OpenAPI spec version: v1
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;
using JDCloudSDK.Core.Service;

using JDCloudSDK.Core.Annotation;

namespace  JDCloudSDK.Deploy.Apis
{

    /// <summary>
    ///  创建部署任务
    /// </summary>
    public class CreateDeployRequest : JdcloudRequest
    {
        ///<summary>
        /// 部署组ID，部署组的唯一标识
        ///Required:true
        ///</summary>
        [Required]
        public   string GroupId{ get; set; }
        ///<summary>
        /// 描述
        ///</summary>
        public   string Desc{ get; set; }
        ///<summary>
        /// 部署来源：1url，2云编译，3云存储
        ///Required:true
        ///</summary>
        [Required]
        public   int DeploySource{ get; set; }
        ///<summary>
        /// 部署操作
        ///</summary>
        public   string DeployCmd{ get; set; }
        ///<summary>
        /// 1使用输入的操作，2使用程序自带操作
        ///</summary>
        public   int? CmdSource{ get; set; }
        ///<summary>
        /// 部署操作展示格式：1form,2ymal
        ///</summary>
        public   int? CmdType{ get; set; }
        ///<summary>
        /// 项目类型 1tomcat,2
        ///</summary>
        public   int? ProductType{ get; set; }
        ///<summary>
        /// 下载url
        ///</summary>
        public   string DownloadUrl{ get; set; }
        ///<summary>
        /// md5
        ///</summary>
        public   string Md5{ get; set; }
        ///<summary>
        /// 云编译项目名
        ///</summary>
        public   string CompileProject{ get; set; }
        ///<summary>
        /// 云编译构建序号
        ///</summary>
        public   string CompileSeries{ get; set; }
        ///<summary>
        /// 云存储空间
        ///</summary>
        public   string OssSpace{ get; set; }
        ///<summary>
        /// 云存储目录
        ///</summary>
        public   string OssDir{ get; set; }
        ///<summary>
        /// 文件类型：1.tar，2.zip,3.tar.gz
        ///</summary>
        public   int? FileType{ get; set; }
        ///<summary>
        /// 地域ID
        ///Required:true
        ///</summary>
        [Required]
        public override  string RegionId{ get; set; }
    }
}